﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace MethodWorx.CMS.Workflow.SendEmail
{
    [Serializable]
    public class SendEmailConfiguration : IWorkflowConfiguration
    {
        [Required]
        public string SmtpHost { get; set; }
        [Required]
        public string SmtpUsername { get; set; }
        [Required]
        public string SmtpPassword { get; set; }
        [Required]
        public string To { get; set; }
        [Required]
        public string From { get; set; }
        [Required]
        public string Subject { get; set; }
        [Required]
        public string Message { get; set; }

        public string GetDescriptionSummary()
        {
            return "Send Email: " + this.To + " - " + this.Subject;
        }
    }
}
